home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_bas
/
pbc32.zip
/
PBC$BAS.ZIP
/
FROMPOST.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-04-10
|
3KB
|
73 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone (C) Copyright 1996 Charon Software, All Rights Reserved |
' | |
' +----------------------------------------------------------------------+
FUNCTION FromPostal$ (Abbrev$)
IF LEN(Abbrev$) = 2 THEN
SELECT CASE CVI(UCASE$(Abbrev$)) ' convert to # (smaller & faster)
CASE &H4C41: st$ = "Alabama"
CASE &H4B41: st$ = "Alaska"
CASE &H5341: st$ = "American Samoa"
CASE &H5A41: st$ = "Arizona"
CASE &H5241: st$ = "Arkansas"
CASE &H4143: st$ = "California"
CASE &H4F43: st$ = "Colorado"
CASE &H5443: st$ = "Connecticut"
CASE &H4544: st$ = "Delaware"
CASE &H4344: st$ = "District of Columbia"
CASE &H4D46: st$ = "Federated States of Micronesia"
CASE &H4C46: st$ = "Florida"
CASE &H4147: st$ = "Georgia"
CASE &H5547: st$ = "Guam"
CASE &H4948: st$ = "Hawaii"
CASE &H4449: st$ = "Idaho"
CASE &H4C49: st$ = "Illinois"
CASE &H4E49: st$ = "Indiana"
CASE &H4149: st$ = "Iowa"
CASE &H534B: st$ = "Kansas"
CASE &H594B: st$ = "Kentucky"
CASE &H414C: st$ = "Louisiana"
CASE &H454D: st$ = "Maine"
CASE &H484D: st$ = "Marshall Islands"
CASE &H444D: st$ = "Maryland"
CASE &H414D: st$ = "Massachusetts"
CASE &H494D: st$ = "Michigan"
CASE &H4E4D: st$ = "Minnesota"
CASE &H4F4D: st$ = "Missouri"
CASE &H534D: st$ = "Mississippi"
CASE &H544D: st$ = "Montana"
CASE &H454E: st$ = "Nebraska"
CASE &H564E: st$ = "Nevada"
CASE &H484E: st$ = "New Hampshire"
CASE &H4A4E: st$ = "New Jersey"
CASE &H4D4E: st$ = "New Mexico"
CASE &H594E: st$ = "New York"
CASE &H434E: st$ = "North Carolina"
CASE &H444E: st$ = "North Dakota"
CASE &H504D: st$ = "Northern Mariana Islands"
CASE &H484F: st$ = "Ohio"
CASE &H4B4F: st$ = "Oklahoma"
CASE &H524F: st$ = "Oregon"
CASE &H4150: st$ = "Pennsylvania"
CASE &H5250: st$ = "Puerto Rico"
CASE &H4952: st$ = "Rhode Island"
CASE &H4353: st$ = "South Carolina"
CASE &H4453: st$ = "South Dakota"
CASE &H4E54: st$ = "Tennessee"
CASE &H5854: st$ = "Texas"
CASE &H5455: st$ = "Utah"
CASE &H5456: st$ = "Vermont"
CASE &H4156: st$ = "Virginia"
CASE &H4956: st$ = "Virgin Islands"
CASE &H4157: st$ = "Washington"
CASE &H5657: st$ = "West Virginia"
CASE &H4957: st$ = "Wisconsin"
CASE &H5957: st$ = "Wyoming"
CASE ELSE
END SELECT
END IF
FromPostal$ = st$
END FUNCTION